/*
 * Post。java
 *
 * Created Date: 2014年12月25日
 *				
 * Copyright (c)  Centling Technologies Co., Ltd.
 *
 * This software is the confidential and proprietary information of
 *  Centling Technologies Co., Ltd. ("Confidential Information"). You shall not
 * disclose such Confidential Information and shall use it only in accordance
 * with the terms of the license agreement you entered into with
 * Centling Technologies Co., Ltd.
 */

package com.centling.bluecollar.privilege.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;


/**
 * @author hellsing
 * @version  <br>
 * <p>类的描述</p>
 */
@Entity
@Table(name="t_post")
public class Post {
	private String id;
	private String postName;
	private OrganizationType organizationType;
	
	/**
	 * @return the organizationType
	 */
	@ManyToOne
	@JoinColumn(name="organizationTypeId")
	public OrganizationType getOrganizationType() {
	
		return organizationType;
	}

	
	/**
	 * @param organizationType the organizationType to set
	 */
	public void setOrganizationType(OrganizationType organizationType) {
	
		this.organizationType = organizationType;
	}

	/**
	 * @return the id
	 */
	@GenericGenerator(name = "idGenerator", strategy = "uuid")
	@Id
	@GeneratedValue(generator = "idGenerator")
	@Column(name = "id", unique = true, nullable = false, length = 50)
	public String getId() {
	
		return id;
	}
	
	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
	
		this.id = id;
	}
	
	/**
	 * @return the postName
	 */
	public String getPostName() {
	
		return postName;
	}
	
	/**
	 * @param postName the postName to set
	 */
	public void setPostName(String postName) {
	
		this.postName = postName;
	}
	
	
}
